{% extends 'mainindex.html' %}

{% block css %}
   <link href="/static/maincss/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="/static/maincss/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <style>
        .droppable-active {
            background-color: #ffe !important;
        }

        .tools a {
            cursor: pointer;
            font-size: 80%;
        }

        .form-body .col-md-6,
        .form-body .col-md-12 {
            min-height: 400px;
        }

        .draggable {
            cursor: move;
        }
    </style>
{% endblock %}
{% block content %}
    <div class="wrapper wrapper-content animated fadeInRight">

        <div class="row">
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>编辑管理员</h5>
                        <div class="ibox-tools">

                        </div>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="signupForm" method="post" novalidate>
                            {% csrf_token %}
                            {% for field in form %}
                            <div class="form-group">
                                <label class="col-sm-3 control-label">{{ field.label }}</label>
                                <div class="col-sm-8">
                                    {{ field }}
                                    <span style="color: red;">{{ field.errors.0 }}</span>
                                </div>
                            </div>
                            {% endfor %}
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

    </div>

{% endblock %}

{% block js %}

    <!-- 自定义js -->
    <script src="/static/mainjs/content.js?v=1.0.0"></script>

    <!-- jQuery UI -->
    <script src="/static/mainjs/jquery-ui-1.10.4.min.js"></script>

    <!-- From Builder -->
    <script src="/static/mainjs/plugins/beautifyhtml/beautifyhtml.js"></script>

{% endblock %}
